home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Online / FlushHeaders / new-source / NewSource.lha / get_folder_path.h < prev    next >
C/C++ Source or Header  |  2001-06-10  |  2KB  |  53 lines

  1. /*
  2. **   YAM2NN - Usenet access for YAM p7 and newer
  3. **   Copyright (C) 1999 Karol Bryd <kbryd@femina.com.pl>
  4. **
  5. **   This program is free software; you can redistribute it and/or
  6. **   modify it under the terms of the GNU General Public License
  7. **   as published by the Free Software Foundation; either version 2
  8. **   of the License, or (at your option) any later version.
  9. **
  10. **   This program is distributed in the hope that it will be useful,
  11. **   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. **   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. **   GNU General Public License for more details.
  14. **
  15. **   You should have received a copy of the GNU General Public License
  16. **   along with this program; if not, write to the Free Software
  17. **   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19.  
  20. #ifndef _FOLDERS_H_
  21. #define _FOLDERS_H_
  22.  
  23. #define REGULAR  0
  24. #define INCOMING 1
  25. #define OUTGOING 2
  26. #define SENT     3
  27. #define DELETED  4
  28.  
  29. struct Folder
  30. {
  31.     struct Folder *f_next;
  32.     struct Folder *f_prev;
  33.     char          *f_path;
  34.     int            f_num;
  35.     int            f_type;
  36. };
  37.  
  38. extern int query_for_user(void);
  39. extern void scan_folders(struct List *folders);
  40. extern int build_folders_list(struct List *folders);
  41. extern void free_folders_list(struct List *folders);
  42. extern char *get_folder_path(struct List *folders, int type);
  43. extern int get_folder_pos(struct List *folders, int type);
  44. extern struct List *init_folder_list(void);
  45.  
  46. extern char current_user_path[];
  47. extern struct List *open_folder_list(void);
  48. extern void save_folder_list(struct List *folders, struct List * newsgrouplist);
  49.  
  50.  
  51. #endif
  52.  
  53.